<!-- 加载layout.html -->
{{extend('./layout.html')}}
			
{{#block('main')}}			
	<div class="main-container">
		<div class="padding-md">
			<ul class="breadcrumb">
				<li><span class="primary-font"><i class="icon-home"></i></span><a href="index.html"> 主页</a></li>
				<li>学科管理</li>	 
				<li>学科列表</li>
				<li class="pull-right"><a href="#" class="btn btn-danger widget-remove-option delAll" data-name="subjectAll">批量删除</a></li>
				<li class="pull-right"><a href="/admin/subject/subject_add" class="btn btn-primary">添加学科</a></li>
			</ul>

			<table class="table table-striped" id="dataTable">
				<thead>
					<tr>
						<th class="text-center">
							<div class="custom-checkbox">
								<input type="checkbox" id="chkAll" class="inbox-check">
								<label for="chkAll"></label>
							</div>
						</th>
						<th>序号</th>
						<th>学科名称</th>
						<th>学科学分</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					{{#each(subList)}}
						<tr>
							<td class="text-center">
								<div class="custom-checkbox">
									<input type="checkbox" value="{{this.sub_id}}" id="{{this.sub_id}}" class="inbox-check del-data-check">
									<label for="{{this.sub_id}}"></label>
								</div>
							</td>
							<td>{{(xindex+1)}}</td>
							<td>{{this.sub_name}}</td>
							<td>{{this.sub_score}}</td>
							<td>
								<a href="/admin/subject/subject_edit/{{this.sub_id}}" class="btn btn-success">修改</a>
								<a href="#" class="btn btn-danger widget-remove-option" data-id="{{this.sub_id}}" data-name="subject">删除</a>
							</td>
						</tr>
					{{/each}}
				</tbody>
			</table>
			<!--分页-->
			{{include('./page.html')}}
		</div><!-- ./padding-md -->
	</div><!-- /main-container -->
{{/block}}

